package com.atguigu.springboot05.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/actress")
public class ActressController {
     @RequestMapping("/name")
    public Map<String ,Object> getName(){
        Map<String ,Object> map  =new HashMap<String ,Object>();
        map.put("yanyuan","zhangsan");
        return map;
    }
    @RequestMapping("/name2")
    public Map<String ,Object> getName2(){
        Map<String ,Object> map  =new HashMap<String ,Object>();
        map.put("yanyuan","zhangsan");
        return map;
    }
    @RequestMapping("/name3")
    public Map<String ,Object> getName3(){
        Map<String ,Object> map  =new HashMap<String ,Object>();
        map.put("yanyuan","zhangsan");
        return map;
    }
    @RequestMapping("/name4")
    public Map<String ,Object> getName4(){
        Map<String ,Object> map  =new HashMap<String ,Object>();
        map.put("yanyuan","zhangsan");
        return map;
    }
}
